package com.heima.wemedia.controller.v1;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.wemedia.service.WmchannelService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(value = "自媒体端-内容列表")
@RestController
@RequestMapping("/api/v1/channel")
public class WmchannelController {

    @Resource
    private WmchannelService wmchannelService;

    @ApiOperation(value = "查询所有频道下拉框")
    @GetMapping("/channels")
    public ResponseResult findAll(){
        return wmchannelService.fidAll();
    }
}